Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support download of UTF-8 filenames #7188 #7503

Merged
merged 4 commits into from Jan 11, 2021
Merged

Conversation

pdurbin
Copy link
Member

@pdurbin pdurbin commented Jan 7, 2021

What this PR does / why we need it:

If you upload a file to Dataverse with a filename that has UTF-8 characters, they get munged on the download. For example, an en-dash ("-") is replaced by a space. "READ–ME.md" become "READ ME.md".

Which issue(s) this PR closes:

Closes #7188

Special notes for your reviewer:

None.

Suggestions on how to test this:

  • Upload a file with UTF-8 characters such as READ–ME.md and Save Changes.
  • Download the file and make sure the name is the same.
  • Try files with spaces in them too.

Emojis seem to work too! 🎉 🎉 🎉

Screen Shot 2021-01-07 at 4 06 00 PM

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

No.

Is there a release notes update needed for this change?:

I didn't add one but I'd be happy to.

Additional documentation:

None. My guess is that people assume this already works. I don't think we declare support for UTF-8 filenames anywhere. To be honest, I'm surprised it works as well as it does but I guess it is 2021. We're living in the future. 😎

@mheppler
Copy link
Contributor

mheppler commented Jan 7, 2021

👏 👏 👏 👏 👏 👏 👏 👏 👏 👏

@coveralls
Copy link

coveralls commented Jan 7, 2021

Coverage Status

Coverage decreased (-0.003%) to 19.478% when pulling 074ac6a on 7188-utf8-filenames into 28406b5 on develop.

Copy link
Member

@qqmyers qqmyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Review 🦁 to QA 🔎✅ Jan 11, 2021
@kcondon kcondon self-assigned this Jan 11, 2021
@kcondon kcondon merged commit 0bcdcfd into develop Jan 11, 2021
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from QA 🔎✅ to Done 🚀 Jan 11, 2021
@kcondon kcondon deleted the 7188-utf8-filenames branch January 11, 2021 21:46
@djbrooke djbrooke added this to the 5.4 milestone Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

UTF-8 characters in filenames not handled correctly in normal downloads
6 participants